Skip to content

fix: use vp exec instead of vpx in build script - #142

Merged
sherwinski merged 1 commit into
mainfrom
sherwin/fix-vpx-build-script
Jun 25, 2026
Merged

sherwinski merged 1 commit into
mainfrom
sherwin/fix-vpx-build-script

Conversation

@sherwinski

Copy link
Copy Markdown
Contributor

Description

Replace vpx with vp exec in scripts/build.sh so the build works for maintainers who installed vp via the vite-plus npm package.

Details

Running bun run build:outputs failed with build.sh: line 26: vpx: command not found.

Root cause: vpx is a global npx-style runner that ships only with the official Vite+ installer (and the voidzero-dev/setup-vp CI action). The vite-plus npm package only exposes vp (plus oxlint/oxfmt) — no vpx. Maintainers whose vp came from npm don't have vpx, so the build broke locally even though CI (which uses setup-vp) was fine.

Fix:

  • vpx yellicode → vp exec yellicode
  • vpx concurrently → vp exec concurrently

vp exec runs binaries from the project's node_modules/.bin and is provided by the vite-plus package itself, so it works regardless of how vp was installed. Both binaries (@yellicode/cli, concurrently) are already project dependencies, and using the pinned local version is safer than vpx's download-on-demand behavior.

Also adds a preflight guard at the top of build.sh that fails fast with an actionable message (pointing to https://vite.plus) if vp or bun is missing from PATH, so future toolchain gaps surface clearly instead of as a cryptic mid-build command not found.

Testing

  • bash -n scripts/build.sh passes; shellcheck reports no issues.
  • vp exec yellicode runs the code-generation step successfully ("Code generation done").
  • vp exec concurrently --version resolves (9.2.1).

Notes

The same vpx pattern also appears in the src/static/** release workflows and the ngx example start.sh; those run in CI where setup-vp provides vpx, so they're lower risk and intentionally left out of this PR's scope.

@sherwinski
sherwinski force-pushed the sherwin/fix-vpx-build-script branch from de3e717 to 223e2f2 Compare June 24, 2026 19:00
The build invoked `vpx` for project-local binaries (yellicode, concurrently),
but `vpx` is only provided by the global Vite+ installer (and the setup-vp CI
action), not by the `vite-plus` npm package. Maintainers who installed `vp`
via npm hit `vpx: command not found`.

Switch to `vp exec`, which runs binaries from the project's node_modules/.bin
and works regardless of how `vp` was installed. Also add a preflight check that
fails fast with an actionable message if `vp` or `bun` is missing from PATH.
@sherwinski
sherwinski force-pushed the sherwin/fix-vpx-build-script branch from 223e2f2 to 1be55c9 Compare June 24, 2026 19:00
@sherwinski
sherwinski requested a review from fadi-george June 24, 2026 19:04
Comment thread scripts/build.sh
exit 1
}
done

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesnt seem needed if we already say in README to use vp install

@sherwinski
sherwinski merged commit 4feb27a into main Jun 25, 2026
1 check passed
@sherwinski
sherwinski deleted the sherwin/fix-vpx-build-script branch June 25, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants